/*
 * @Descripttion: 大二一名学习前端开发的计科学生，缓慢成长中！
 * @emial: 2392862431@qq.com
 * @Author: SummerSofts
 * @Date: 2023-08-08 11:29:47
 * @LastEditors: SummerSofts
 * @LastEditTime: 2023-09-07 16:37:36
 */
import { createApp } from 'vue'
import router from './router'
import "./style.css"
import "./assets/font/font.css"
import WHUI from "warmheart-design"
//导入组件组图标样式库
import wmIconStyle from "../node_modules/warmheart-design/dist/icon/iconfont.css"
import highlightJS from "highlight.js"
import 'highlight.js/styles/tomorrow-night-bright.css'
import "../node_modules/warmheart-design/dist/style.css"
import App from './App.vue'
const app = createApp(App)
app.use(router)
app.use(wmIconStyle)
app.use(WHUI)
//配置代码高亮
app.directive("highlight",function(el){
    const blocks = el.querySelectorAll("pre code")
    blocks.forEach((block)=>{
        highlightJS.highlightBlock(block)
    })
})
app.mount('#app')
